﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Edit.ascx.vb" Inherits="Control_Scholarship_Edit" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {
            //Popup
            var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
            if (isAsyncPostback) {
                tb_init('a.thickbox, area.thickbox, input.thickbox');
            }
            //focus
            $(".TextBox:first").focus();
        });
    }
   
</script>
<asp:UpdatePanel ID="uplScholarship" runat="server">
    <ContentTemplate>
        <div class="content_porletform">
            <div class="HeadTitle">
                <h3>
                    CHỈNH SỬA FEEDBACK</h3>
            </div>
            <div class="box_contentform">
                <div class="box_scroll_grid">
                    <div class="DivRequired">
                        <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
                    </div>
                    <div class="Error">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
                    </div>
                    <div class="DivRow" id="Div2">
                        <div class="DivLabel">
                            <asp:Label ID="lblTitle" CssClass="TextLabel" runat="server" Text="Tiêu đề:" />
                        </div>
                        <asp:TextBox ID="txtTitle" CssClass="TextBox" Text="" runat="server"></asp:TextBox>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel">
                            <asp:Label ID="lblDetail" CssClass="TextLabel" runat="server" Text="Nội dung:" /><span
                                class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtDetail" CssClass="TextBox" runat="server" Text="" TextMode="MultiLine"
                                Height="100" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDetail"
                                Display="None" ErrorMessage="Vui lòng nhập nội dung feedback." SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel">
                            <asp:Label ID="lblFullName" CssClass="TextLabel" runat="server" Text="Người feedback:" /><span
                                class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtFullName" CssClass="TextBox" runat="server" Text="" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFullName"
                                Display="None" ErrorMessage="Vui lòng nhập họ tên." SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel">
                            <asp:Label ID="lblEmail" CssClass="TextLabel" runat="server" Text="Email:" /><span
                                class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txEmail" CssClass="TextBox" runat="server" Text="" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txEmail"
                                ErrorMessage="Vui lòng nhập địa chỉ mail hợp lệ" SetFocusOnError="True"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="None"></asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel">
                            <asp:Label ID="lblPhone" CssClass="TextLabel" runat="server" Text="Điện thoại:" /><span
                                class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtPhone" CssClass="TextBox" runat="server" Text="" MaxLength="20"
                                onkeypress="javascript:return isNumberKey(event);" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhone"
                                Display="None" ErrorMessage="Vui lòng nhập số điện thoại." SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtPhone"
                                Display="None" ErrorMessage="Chỉ nhập số nguyên cho số điện thoại." ValidationExpression="^[0-9]*$"
                                SetFocusOnError="True"></asp:RegularExpressionValidator>
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel">
                            <asp:Label ID="lblAddress" CssClass="TextLabel" runat="server" Text="Địa chỉ:" /><span
                                class="fieldRequired">&nbsp;</span>
                        </div>
                        <div class="DivTextBox">
                            <asp:TextBox ID="txtAddress" CssClass="TextBox" runat="server" Text="" />
                        </div>
                    </div>
                    <div class="DivRow">
                        <div class="DivLabel">
                            &nbsp;&nbsp;&nbsp;</div>
                        <div class="DivTextBox">
                            <div style="float: left">
                                <asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
                                &nbsp;<asp:Button ID="btnCancel" runat="server" CausesValidation="false" CssClass="btn"
                                    Text=" Hủy " /></div>
                            <div style="float: right; text-align: right">
                                &nbsp;<asp:ImageButton ID="btnBack" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/back.png"
                                    ToolTip="Quay lại" /></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="display: none">
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
            <asp:TextBox ID="txtCriteria" CssClass="TextBox" Text="" runat="server" Visible="true"></asp:TextBox>
            <asp:TextBox ID="txtStrCriteria" CssClass="TextBox" Text="" runat="server" Visible="true"></asp:TextBox>
            <asp:TextBox ID="hidImagePath" Text="" runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
